﻿using System.Reflection;
using System.Windows.Forms;

namespace todo
{
    public partial class OptionsForm : Form
    {
        private OptionsHost host;

        public OptionsForm()
        {
            InitializeComponent();


            //
            var exe = Assembly.GetExecutingAssembly().Location;
            var url = @"res://" + exe + "/options.html";

            host = new OptionsHost();
            host.OnClose += (sender, args) => { this.Close(); };
            www.ObjectForScripting = host;
            www.Navigate(url);

#if zh
            this.Text = "选项";
#endif
        }
    }
}